import java.util.Scanner;

public class Ex6_4{
	public static void main(String[] args){
		final int MAXNUM = 10;
		Scanner input = new Scanner(System.in);
		double[] scores = new double[MAXNUM];
		double sum = 0;
		/*
		// Another writing.
		int i = 0;
		double t = input.nextDouble();
		while (t >= 0 && i < MAXNUM){
			sum += t;
			scores[i++] = t;
			t = input.nextDouble();
		}
		*/
		int i;
		for (i = 0; i < MAXNUM; i++){
			double t = input.nextDouble();
			if (t < 0)
				break;
			sum += t;
			scores[i] = t;
		}
		double average = sum / i;
		int count = 0;
		for (double s:scores){
			if (s >= average)
				count++;
		}
		System.out.printf("The average is %.1f\n", average);
		System.out.printf("There %d scores are above or equal to the average.\n", count);
		System.out.printf("There %d scores are below the average.\n", i-count);
	}
}